package com.bt.lms.ui.action.teaching.supervise;

import com.bt.lms.ui.page.common.action.pageteaching.TeachingArrangeLabAction;
import com.bt.lms.ui.page.teaching.supervise.PageLookCourseResource;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;

/**
 * 教学监管界面  查看课程资源按钮事件
 */
public class PageTeachingSuperviseLookCourseResourceBtnAction implements EventHandler {

    @Override

    public void handle(Event event) {


        PageLookCourseResource pageLookCourseResource = new PageLookCourseResource();
        Pane pane = TeachingArrangeLabAction.pageSkipInfo.getPane();
        Integer index = TeachingArrangeLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index,pageLookCourseResource);
    }
}
